//
//  CommonTools.swift
//  微博(Swift)
//
//  Created by V on 15/12/27.
//  Copyright © 2015年 V. All rights reserved.
//

import UIKit

let SCREENW = UIScreen.mainScreen().bounds.size.width
let SCREENH = UIScreen.mainScreen().bounds.size.height
// 切换根控制器的通知名字
let FXSwitchRootViewControllerNotification = "FXSwitchRootViewControllerNotification"
// 滑动键盘的cell让toolBar上的按钮成为选中状态
let FXEmoticonButtonSelectedNotification = "FXEmoticonButtonSelectedNotification"
// 表情选中通知
let FXEmoticonDidSelectedNotification = "FXEmoticonDidSelectedNotification"

// 随机颜色
func RandomColor() -> UIColor {
    return UIColor(red: CGFloat(arc4random() % 256) / 255, green: CGFloat(arc4random() % 256) / 255, blue: CGFloat(arc4random() % 256) / 255, alpha: 1)
}